//
//  DFNetWorkMgr.h
//  DownGuys
//
//  Created by zhanghongwei on 1/12/16.
//  Copyright © 2016年 down-guys. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "DFNetWorkMacros.h"
#import "DFParamRequest.h"

//网络调用成功回调函数
typedef void (^callSuccessBlock)(NSInteger statusCode, id respond);
//网络调用失败回调函数
typedef void (^callFailureBlock)(NSInteger statusCode, NSString *localizedDescription, NSString *errorStr);


@interface DFNetWorkMgr : NSObject

//单例
+ (DFNetWorkMgr*)sharedInstance;


//网络请求，包含 “GET” 和 "POST" 方法
- (void)requestAsynchronous:(DFParamRequest*)params
                    success:(callSuccessBlock)success
                    failure:(callFailureBlock)failure;


@end






























